<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page session="false" %>
<html>
<head>
	<title>SmartPush License Manager</title>
</head>
<body>
<h1>
	SmartPush Licsense Manager  
</h1>

<h2>  라이센스 생성 </h2>
<form:form commandName="licenseModel" method="POST" action="/smartpush_license/license/create">
	<table border="1" style="text-align: center;">
	<tr>
		<td>
			업체 명 : 
		</td>
		<td>
			<form:select path="companySeq">
			<c:forEach items="${company}" var="company" varStatus="status">
				<form:option value="${company.companySeq}">${company.companyName}</form:option>
			</c:forEach>
			</form:select>
		</td>
	</tr>
	<tr>
		<td>
			제품 명 :
		</td>
		<td>
			<form:input path="pName" type="text" placeholder="제품 명"/>
		</td>
	</tr>
	<tr>
		<td>
			제품 Ver. :
		</td>
		<td>
			<form:input path="version" type="text" placeholder="Ver."/>
		</td>
	</tr>
	<tr>
		<td>
			Host Id :
		</td>
		<td>
			<form:input path="hostId" type="text" placeholder="호스트 아이디"/>
		</td>
	</tr>
	 <tr>
		<td>
			제한 여부 :
		</td>
		 <td>
			<form:select path="unLimit">
				<form:option value="L">Yes</form:option>
				<form:option value="U">No</form:option>
			</form:select>
		</td>
	</tr> 
	<tr>
		<td>
			등록 제한 개수 :
		</td>
		<td>
			<form:input path="maxDeviceCnt" type="text" placeholder="등록 제한 개수"/>
		</td>
	</tr>
	<tr>
		<td>
			만료 일자 : 
		</td>
		<td>
			<form:input path="expiredDate" class="input" type="text" id="startDate"/>
		</td>
	</tr>	
	</table>
	<br>
		&nbsp; &nbsp; &nbsp;
		<input type="submit" value="등록" id="createSubmit" style="width:150px;height:30px;font-size:30px"/> &nbsp; &nbsp; &nbsp;
		<input type="button" value="취소" id="cancle" style="width:150px;height:30px;font-size:30px" onclick="history.back()"/>
	<form:errors style="color: red;" path="error_msg"></form:errors>
</form:form>
</body>
</html>

<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/jquery-1.7.1.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/jquery.tmpl.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/placeholder.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/jquery.ui.widget.min.js"></script>
<script src="/smartpush_license/resources/javascript/lib/jquery.flot.js"></script>
<script src="/smartpush_license/resources/javascript/lib/date.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/jquery.ui.datepicker.min.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/ui.datepicker-ko.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/datepickerUtil.js"></script>
<script type="text/javascript" src="/smartpush_license/resources/javascript/lib/license.js"></script>
